package net.yxsoft.enumclass;

import rapid.core.EnumClsBase;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by leo on 2016/5/12.
 */
public class WhetherEnumCls extends EnumClsBase<WhetherEnumCls> {
  public WhetherEnumCls(String text, String value) {
    super(text, value);
  }

  public static WhetherEnumCls YES = new WhetherEnumCls("是", "1");

  public static WhetherEnumCls NO = new WhetherEnumCls("否", "0");

  public static List<WhetherEnumCls> COLLECTS = new ArrayList<WhetherEnumCls>() {
    {
      add(NO);
      add(YES);
    }
  };

  public static List<WhetherEnumCls> COLLECTS_DEFAULT = new ArrayList<WhetherEnumCls>() {
    {
      add(YES);
      add(NO);
    }
  };

}
